Skip to main content
Version: AMF 4.x.x

Validation

Validation is the process of checking that your model complies with the constraints you've defined for it. If the model doesn't comply, you can determine where it's invalid and assess the severity.

After you've parsed and resolved the model, apply AMF validation:

  • Web API validations
    • These are programmatic constraints that are validated against the WebApi model
    • There are general validations and validations specific to every API specification AMF supports
  • SHACL validations
    • SHACL (Shapes Constraint Language) declares certain conditions that can be validated against RDF graphs, such as the AMF Graph
    • Used mainly to validate AML dialect instances

The following figure explains the AMF validation process:

Validation Graph

Validation Examples


Code extracted from the examples GitHub repository.

The final feature in the AMF repertoire is emission, and you'll learn about it in the next section.